package com.jemmyee.pizza.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @author qiuchao 2010-12-21
 */
@Entity
@Table(name = "surrogate")
public class Surrogate implements java.io.Serializable {
	private Integer surrogateId;
	private String dictateNumber;
	private String payNumber;
	private String payType;
	private String protocolNumber;
	private String moneyType;
	private String chargeCard;
	private String chargeUnit;
	private String payCard;
	private String payPerson;
	private Double payMoney;
	private String purpose;
	private String bankFeedback;
	private String customNumber;
	private String sendMobile;
	private String sendFlag;
	private Date queryTime;
	private String batchNumber;
	private String surrogateNumber;

	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	
	@Column(name = "surrogate_id", unique = true, nullable = false)
	public Integer getSurrogateId() {
		return surrogateId;
	}

	public void setSurrogateId(Integer surrogateId) {
		this.surrogateId = surrogateId;
	}

	@Column(name = "dictate_number", length=20)
	public String getDictateNumber() {
		return dictateNumber;
	}

	public void setDictateNumber(String dictateNumber) {
		this.dictateNumber = dictateNumber;
	}

	@Column(name = "pay_number", length=20)
	public String getPayNumber() {
		return payNumber;
	}

	public void setPayNumber(String payNumber) {
		this.payNumber = payNumber;
	}

	@Column(name = "pay_type", length=20)
	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	@Column(name = "protocol_number", length=20)
	public String getProtocolNumber() {
		return protocolNumber;
	}

	public void setProtocolNumber(String protocolNumber) {
		this.protocolNumber = protocolNumber;
	}

	@Column(name = "money_type", length=20)
	public String getMoneyType() {
		return moneyType;
	}

	public void setMoneyType(String moneyType) {
		this.moneyType = moneyType;
	}

	@Column(name = "charge_card", length=20)
	public String getChargeCard() {
		return chargeCard;
	}

	public void setChargeCard(String chargeCard) {
		this.chargeCard = chargeCard;
	}

	@Column(name = "charge_unit", length=200)
	public String getChargeUnit() {
		return chargeUnit;
	}

	public void setChargeUnit(String chargeUnit) {
		this.chargeUnit = chargeUnit;
	}

	@Column(name = "pay_card", length=20)
	public String getPayCard() {
		return payCard;
	}

	public void setPayCard(String payCard) {
		this.payCard = payCard;
	}

	@Column(name = "pay_person", length=50)
	public String getPayPerson() {
		return payPerson;
	}

	public void setPayPerson(String payPerson) {
		this.payPerson = payPerson;
	}

	@Column(name = "pay_money")
	public Double getPayMoney() {
		return payMoney;
	}

	public void setPayMoney(Double payMoney) {
		this.payMoney = payMoney;
	}

	@Column(name = "purpose", length=50)
	public String getPurpose() {
		return purpose;
	}

	public void setPurpose(String purpose) {
		this.purpose = purpose;
	}

	@Column(name = "bank_feedback", length=200)
	public String getBankFeedback() {
		return bankFeedback;
	}

	public void setBankFeedback(String bankFeedback) {
		this.bankFeedback = bankFeedback;
	}

	@Column(name = "custom_number", length=20)
	public String getCustomNumber() {
		return customNumber;
	}

	public void setCustomNumber(String customNumber) {
		this.customNumber = customNumber;
	}

	@Column(name = "send_mobile", length=20)
	public String getSendMobile() {
		return sendMobile;
	}

	public void setSendMobile(String sendMobile) {
		this.sendMobile = sendMobile;
	}

	@Column(name = "send_flag", length=20)
	public String getSendFlag() {
		return sendFlag;
	}

	public void setSendFlag(String sendFlag) {
		this.sendFlag = sendFlag;
	}

	@Column(name = "query_time")
	public Date getQueryTime() {
		return queryTime;
	}

	public void setQueryTime(Date queryTime) {
		this.queryTime = queryTime;
	}

	@Column(name = "batch_number",length=20)
	public String getBatchNumber() {
		return batchNumber;
	}

	public void setBatchNumber(String batchNumber) {
		this.batchNumber = batchNumber;
	}

	@Column(name = "surrogate_number",length=20)
	public String getSurrogateNumber() {
		return surrogateNumber;
	}

	public void setSurrogateNumber(String surrogateNumber) {
		this.surrogateNumber = surrogateNumber;
	}

}
